package com.dzx.design.behavioral.observer.event;

/**
 * @author dzx
 * @ClassName:
 * @Description:  guava 方式 实现 观察者模式
 * @date 2019年08月14日 15:36:32
 */
public class GuavaEventTest {
    public static void main(String[] args) {
        Course course = new Course("java设计模式");
        Teacher teacher = new Teacher("apl");
        Teacher teacher1 = new Teacher("bpl");
        course.register(teacher);
        course.register(teacher1);

        Question question = new Question("段朝旭", "java有多少种设计模式？？");
        course.post(new NotifyParam(course,question));

    }
}
